package com.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.UnitdoorMapper;
import com.entity.Unitdoor;

@Service
public class UnitdoorService {
	
	@Resource
	UnitdoorMapper unitdoorMapper;
	
	public List<Unitdoor> showAll(Map<String,Object> maps){
		return unitdoorMapper.show(maps);
	}
	
	public Unitdoor selectIdnumber(String idnumber){
		return unitdoorMapper.selectIdnumber(idnumber);
	}
	
	public List<Unitdoor> showUnitdoor(){
		return unitdoorMapper.showAll();
	}
	
	public Unitdoor selectOne(String id){
		return unitdoorMapper.selectOne(id);
	}
	
	public int update(Unitdoor unitdoor){
		return unitdoorMapper.update(unitdoor);
	}
	
	public int insert(Unitdoor unitdoor){
		return unitdoorMapper.insert(unitdoor);
	}
}
